package com.erp.gather.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 商品价格调控业务对象 erp_product_price_control
 *
 * @author erp
 * @date 2023-12-07
 */

@Data
public class ErpProductPriceControlBo {

    /**
     * 商品价格调控表
     */
    @NotNull(message = "商品价格调控表不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 调价类型
     */
    @NotBlank(message = "调价类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String controlType;

    /**
     * 调价方式
     */
    @NotBlank(message = "调价方式不能为空", groups = { AddGroup.class, EditGroup.class })
    private String controlWay;

    /**
     * 加减方式
     */
    @NotBlank(message = "加减方式不能为空", groups = { AddGroup.class, EditGroup.class })
    private String priceType;

    /**
     * 价格
     */
    @NotBlank(message = "价格不能为空", groups = { AddGroup.class, EditGroup.class })
    private String amount;

    /**
     * 国家
     */
    @NotBlank(message = "国家不能为空", groups = { AddGroup.class, EditGroup.class })
    private String country;


}
